<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: Coord Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00065.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">Coord Class Reference<div class="ingroups"><a class="el" href="a00514.html">utils  -  utility classes</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Coord" -->
<p>Class for storing 3D coordinates.  
 <a href="a00065.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00322_source.html">Coord.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for Coord:</div>
<div class="dyncontent">
<div class="center"><img src="a00680.png" border="0" usemap="#Coord_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a00681.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="add896c4f3fb15b4ad762b5270855345c"></a><!-- doxytag: member="Coord::Coord" ref="add896c4f3fb15b4ad762b5270855345c" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#add896c4f3fb15b4ad762b5270855345c">Coord</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a93d47461a77c401891842045ff712f15"></a><!-- doxytag: member="Coord::Coord" ref="a93d47461a77c401891842045ff712f15" args="(double x, double y, double z=0.0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a93d47461a77c401891842045ff712f15">Coord</a> (double x, double y, double z=0.0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a coordinate. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaa9f1d0acf5250162e417b61eb12a006"></a><!-- doxytag: member="Coord::Coord" ref="aaa9f1d0acf5250162e417b61eb12a006" args="(const Coord &amp;other)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#aaa9f1d0acf5250162e417b61eb12a006">Coord</a> (const <a class="el" href="a00065.html">Coord</a> &amp;other)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes coordinate from other coordinate. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a86994bfa7096155d951abb03dcf30bf1"></a><!-- doxytag: member="Coord::info" ref="a86994bfa7096155d951abb03dcf30bf1" args="() const " -->
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a86994bfa7096155d951abb03dcf30bf1">info</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a string with the value of the coordinate. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a41a7f41a153a3fdbed9dea051f0ae559"></a><!-- doxytag: member="Coord::operator*=" ref="a41a7f41a153a3fdbed9dea051f0ae559" args="(double f)" -->
<a class="el" href="a00065.html">Coord</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a41a7f41a153a3fdbed9dea051f0ae559">operator*=</a> (double f)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiplies this coordinate vector by a real number. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a378973a28985ee7cb441eaf2e70ed378"></a><!-- doxytag: member="Coord::operator/=" ref="a378973a28985ee7cb441eaf2e70ed378" args="(double f)" -->
<a class="el" href="a00065.html">Coord</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a378973a28985ee7cb441eaf2e70ed378">operator/=</a> (double f)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Divides this coordinate vector by a real number. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a07c952bb96124ea08eeff7bba3de6072"></a><!-- doxytag: member="Coord::operator+=" ref="a07c952bb96124ea08eeff7bba3de6072" args="(const Coord &amp;a)" -->
<a class="el" href="a00065.html">Coord</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a07c952bb96124ea08eeff7bba3de6072">operator+=</a> (const <a class="el" href="a00065.html">Coord</a> &amp;a)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds coordinate vector 'a' to this. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00065.html">Coord</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#adda0e91b0e155a08a50e733dbfdb8837">operator=</a> (const <a class="el" href="a00065.html">Coord</a> &amp;other)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Assigns coordinate vector 'other' to this.  <a href="#adda0e91b0e155a08a50e733dbfdb8837"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2cafece343439d415c4557167556ba69"></a><!-- doxytag: member="Coord::operator&#45;=" ref="a2cafece343439d415c4557167556ba69" args="(const Coord &amp;a)" -->
<a class="el" href="a00065.html">Coord</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a2cafece343439d415c4557167556ba69">operator-=</a> (const <a class="el" href="a00065.html">Coord</a> &amp;a)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Subtracts coordinate vector 'a' from this. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab6a7bfcc5c55e5d8edbc7c0cb5a11626"></a><!-- doxytag: member="Coord::distance" ref="ab6a7bfcc5c55e5d8edbc7c0cb5a11626" args="(const Coord &amp;a) const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#ab6a7bfcc5c55e5d8edbc7c0cb5a11626">distance</a> (const <a class="el" href="a00065.html">Coord</a> &amp;a) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the distance to <a class="el" href="a00065.html" title="Class for storing 3D coordinates.">Coord</a> 'a'. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9245e5acb794d95128e191e6faef99d4"></a><!-- doxytag: member="Coord::sqrdist" ref="a9245e5acb794d95128e191e6faef99d4" args="(const Coord &amp;a) const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a9245e5acb794d95128e191e6faef99d4">sqrdist</a> (const <a class="el" href="a00065.html">Coord</a> &amp;a) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns distance^2 to <a class="el" href="a00065.html" title="Class for storing 3D coordinates.">Coord</a> 'a' (omits calling square root). <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf6119bf8bc9953d561729314de8ed5e"></a><!-- doxytag: member="Coord::sqrTorusDist" ref="aaf6119bf8bc9953d561729314de8ed5e" args="(const Coord &amp;b, const Coord &amp;size) const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#aaf6119bf8bc9953d561729314de8ed5e">sqrTorusDist</a> (const <a class="el" href="a00065.html">Coord</a> &amp;b, const <a class="el" href="a00065.html">Coord</a> &amp;size) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the squared distance on a torus of this to <a class="el" href="a00065.html" title="Class for storing 3D coordinates.">Coord</a> 'b' (omits calling square root). <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a278c018d6de54a020c39b3b1afaec50e"></a><!-- doxytag: member="Coord::squareLength" ref="a278c018d6de54a020c39b3b1afaec50e" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a278c018d6de54a020c39b3b1afaec50e">squareLength</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the square of the length of this Coords position vector. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acc536671c07e1af44e6ad9676a6c39ad"></a><!-- doxytag: member="Coord::length" ref="acc536671c07e1af44e6ad9676a6c39ad" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#acc536671c07e1af44e6ad9676a6c39ad">length</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the length of this Coords position vector. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a7a42e29d7a15ed0b53e47137549e00a6">isInBoundary</a> (const <a class="el" href="a00065.html">Coord</a> &amp;lowerBound, const <a class="el" href="a00065.html">Coord</a> &amp;upperBound) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if this coordinate is inside a specified rectangle.  <a href="#a7a42e29d7a15ed0b53e47137549e00a6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b27150571dfb315bea3e650ea2956a0"></a><!-- doxytag: member="Coord::min" ref="a0b27150571dfb315bea3e650ea2956a0" args="(const Coord &amp;a)" -->
<a class="el" href="a00065.html">Coord</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a0b27150571dfb315bea3e650ea2956a0">min</a> (const <a class="el" href="a00065.html">Coord</a> &amp;a)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the minimal coordinates. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac5a32e0e7a527085f63b7b3476ae47a0"></a><!-- doxytag: member="Coord::max" ref="ac5a32e0e7a527085f63b7b3476ae47a0" args="(const Coord &amp;a)" -->
<a class="el" href="a00065.html">Coord</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#ac5a32e0e7a527085f63b7b3476ae47a0">max</a> (const <a class="el" href="a00065.html">Coord</a> &amp;a)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the maximal coordinates. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">x, y and z coordinate of the position.</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0172a22ee75843a96e3a84ebc25f3de7"></a><!-- doxytag: member="Coord::x" ref="a0172a22ee75843a96e3a84ebc25f3de7" args="" -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>x</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af6e543e0522076e717bae53102655b87"></a><!-- doxytag: member="Coord::y" ref="af6e543e0522076e717bae53102655b87" args="" -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>y</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2bf056108a79437171f18490afbdce2d"></a><!-- doxytag: member="Coord::z" ref="a2bf056108a79437171f18490afbdce2d" args="" -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>z</b></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2d291cbb8e58af4ce8c68e9c8671b5d6"></a><!-- doxytag: member="Coord::ZERO" ref="a2d291cbb8e58af4ce8c68e9c8671b5d6" args="" -->
static const <a class="el" href="a00065.html">Coord</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a2d291cbb8e58af4ce8c68e9c8671b5d6">ZERO</a> = <a class="el" href="a00065.html">Coord</a>(0.0, 0.0, 0.0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constant with all values set to 0. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a93c1d69ee1ef5c0be5f31e9b55fafa84"></a><!-- doxytag: member="Coord::copy" ref="a93c1d69ee1ef5c0be5f31e9b55fafa84" args="(const Coord &amp;other)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>copy</b> (const <a class="el" href="a00065.html">Coord</a> &amp;other)</td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4eb976e0a2def05ecb6464bd170b5fa9"></a><!-- doxytag: member="Coord::operator+" ref="a4eb976e0a2def05ecb6464bd170b5fa9" args="(const Coord &amp;a, const Coord &amp;b)" -->
<a class="el" href="a00065.html">Coord</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a4eb976e0a2def05ecb6464bd170b5fa9">operator+</a> (const <a class="el" href="a00065.html">Coord</a> &amp;a, const <a class="el" href="a00065.html">Coord</a> &amp;b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds two coordinate vectors. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a956e1210813652ce2caa7529b3e0be"></a><!-- doxytag: member="Coord::operator&#45;" ref="a0a956e1210813652ce2caa7529b3e0be" args="(const Coord &amp;a, const Coord &amp;b)" -->
<a class="el" href="a00065.html">Coord</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a0a956e1210813652ce2caa7529b3e0be">operator-</a> (const <a class="el" href="a00065.html">Coord</a> &amp;a, const <a class="el" href="a00065.html">Coord</a> &amp;b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Subtracts two coordinate vectors. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a432afd497adcff7b20ca23af611ec919"></a><!-- doxytag: member="Coord::operator*" ref="a432afd497adcff7b20ca23af611ec919" args="(const Coord &amp;a, double f)" -->
<a class="el" href="a00065.html">Coord</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a432afd497adcff7b20ca23af611ec919">operator*</a> (const <a class="el" href="a00065.html">Coord</a> &amp;a, double f)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiplies a coordinate vector by a real number. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a310db4e85a0b20ec14725f49aae08cc3"></a><!-- doxytag: member="Coord::operator/" ref="a310db4e85a0b20ec14725f49aae08cc3" args="(const Coord &amp;a, double f)" -->
<a class="el" href="a00065.html">Coord</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a310db4e85a0b20ec14725f49aae08cc3">operator/</a> (const <a class="el" href="a00065.html">Coord</a> &amp;a, double f)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Divides a coordinate vector by a real number. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a2dc488cbfa8e8256dfc22b4916b9ef9b">operator==</a> (const <a class="el" href="a00065.html">Coord</a> &amp;a, const <a class="el" href="a00065.html">Coord</a> &amp;b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Tests whether two coordinate vectors are equal.  <a href="#a2dc488cbfa8e8256dfc22b4916b9ef9b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00065.html#a321e8d56735047b9e49f869fd8f23d3e">operator!=</a> (const <a class="el" href="a00065.html">Coord</a> &amp;a, const <a class="el" href="a00065.html">Coord</a> &amp;b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Tests whether two coordinate vectors are not equal.  <a href="#a321e8d56735047b9e49f869fd8f23d3e"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Class for storing 3D coordinates. </p>
<p>Some comparison and basic arithmetic operators are implemented.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Christian Frank </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7a42e29d7a15ed0b53e47137549e00a6"></a><!-- doxytag: member="Coord::isInBoundary" ref="a7a42e29d7a15ed0b53e47137549e00a6" args="(const Coord &amp;lowerBound, const Coord &amp;upperBound) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Coord::isInBoundary </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00065.html">Coord</a> &amp;&#160;</td>
          <td class="paramname"><em>lowerBound</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00065.html">Coord</a> &amp;&#160;</td>
          <td class="paramname"><em>upperBound</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks if this coordinate is inside a specified rectangle. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lowerBound</td><td>The upper bound of the rectangle. </td></tr>
    <tr><td class="paramname">upperBound</td><td>The lower bound of the rectangle. </td></tr>
  </table>
  </dd>
</dl>

<p>Referenced by <a class="el" href="a00179.html#a299b33afdc27f467b3cdd472a397bb5a">PostureTransition::findAreaType()</a>, and <a class="el" href="a00142.html#aa9e9424cb4572715a8f5b042aa4155d0">MoBANCoordinator::isInsideWorld()</a>.</p>
<div class="fragment"><pre class="fragment">                                                                              {
        <span class="keywordflow">return</span>  lowerBound.x &lt;= x &amp;&amp; x &lt;= upperBound.x &amp;&amp;
                lowerBound.y &lt;= y &amp;&amp; y &lt;= upperBound.y &amp;&amp;
                lowerBound.z &lt;= z &amp;&amp; z &lt;= upperBound.z;
    }
</pre></div>
</div>
</div>
<a class="anchor" id="adda0e91b0e155a08a50e733dbfdb8837"></a><!-- doxytag: member="Coord::operator=" ref="adda0e91b0e155a08a50e733dbfdb8837" args="(const Coord &amp;other)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00065.html">Coord</a>&amp; Coord::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00065.html">Coord</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Assigns coordinate vector 'other' to this. </p>
<p>This operator can change the dimension of the coordinate. </p>
<div class="fragment"><pre class="fragment">                                         {
        <span class="keywordflow">if</span> (<span class="keyword">this</span> == &amp;other) <span class="keywordflow">return</span> *<span class="keyword">this</span>;
        <a class="code" href="a00065.html#adda0e91b0e155a08a50e733dbfdb8837" title="Assigns coordinate vector &#39;other&#39; to this.">cObject::operator=</a>(other);
        copy(other);
        <span class="keywordflow">return</span> *<span class="keyword">this</span>;
    }
</pre></div>
</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a321e8d56735047b9e49f869fd8f23d3e"></a><!-- doxytag: member="Coord::operator!=" ref="a321e8d56735047b9e49f869fd8f23d3e" args="(const Coord &amp;a, const Coord &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00065.html">Coord</a> &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00065.html">Coord</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests whether two coordinate vectors are not equal. </p>
<p>Negation of the operator==. </p>
<div class="fragment"><pre class="fragment">                                                           {
        <span class="keywordflow">return</span> !(a==b);
    }
</pre></div>
</div>
</div>
<a class="anchor" id="a2dc488cbfa8e8256dfc22b4916b9ef9b"></a><!-- doxytag: member="Coord::operator==" ref="a2dc488cbfa8e8256dfc22b4916b9ef9b" args="(const Coord &amp;a, const Coord &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00065.html">Coord</a> &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00065.html">Coord</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests whether two coordinate vectors are equal. </p>
<p>Because coordinates are of type double, this is done through the <a class="el" href="a00095.html#a38d2500887b49de2a2b5f8610f7ba6d1">FWMath::close</a> function. </p>
<div class="fragment"><pre class="fragment">                                                           {
        <span class="comment">// FIXME: this implementation is not transitive</span>
        <span class="keywordflow">return</span> <a class="code" href="a00095.html#a38d2500887b49de2a2b5f8610f7ba6d1">FWMath::close</a>(a.x, b.x) &amp;&amp; <a class="code" href="a00095.html#a38d2500887b49de2a2b5f8610f7ba6d1">FWMath::close</a>(a.y, b.y) &amp;&amp; <a class="code" href="a00095.html#a38d2500887b49de2a2b5f8610f7ba6d1">FWMath::close</a>(a.z, b.z);
    }
</pre></div>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/Projects/MiXiM/extsrc/mixim/src/inet_stub/base/<a class="el" href="a00322_source.html">Coord.h</a></li>
<li>D:/Projects/MiXiM/extsrc/mixim/src/inet_stub/base/Coord.cc</li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00065.html">Coord</a>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:31 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
